package com.ssyt.blog.core.sys.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.ssyt.blog.core.sys.dao.DiscussDao;
import com.ssyt.blog.core.sys.entity.Discuss;

@Service
public class DiscussService {
	@Autowired
	private DiscussDao discussDao;

	public List<Discuss> discussListByArticle(int id) {
		return discussDao.discussListByArticle(id);
	}

	public int addDiscuss(String content, int articleId, int userId) {
		return discussDao.addDiscuss(content, articleId, userId);
	}

	public void discussInfoDelete(Integer id) {
		discussDao.discussInfoDelete(id);
	}

}
